Quote Originally Posted by jimblumberg View Post
You are mixing C-strings with std::strings, I recommend you stick with the std::strings. Convert the StartCity and EndCity to std::strings instead of the C-strings. If you don't want to change your other functions then use the std::string.c_str() member function when you need to pass a C-string into your function. However I suggest that you also consider changing the other functions to use std::strings as well.
Code:
bool ArgCheck = TestArgs(StartCity.c_str(), cities, st);
Jim
Can you show me an example of std::string.c_str()? I have a bunch of functions and that would really be a pain.